﻿using System;
using System.Collections.Generic;
using System.Text;
using SharpDiary.Core.Data;

namespace CrumbPlus.Core.Crumb
{
    /// <summary>
    /// 面包屑信息。
    /// </summary>
    [TableInfoAttribute("CrumbInfo")]
    public class CrumbInfo : DbMappingObjectBase
    {
        #region

        private System.Int64 _id;

        [FieldMapping(false, System.Data.DbType.Int64, true, true)]
        public System.Int64 Id
        {
            get { return _id; }
            set { _id = value; }
        }

        private System.String _code;

        [FieldMapping(true, System.Data.DbType.String, false, true)]
        public System.String Code
        {
            get { return _code; }
            set { _code = value; }
        }

        private System.String _name;

        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public System.String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private System.String _description;

        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public System.String Description
        {
            get { return _description; }
            set { _description = value; }
        }

        private System.String _tags;

        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public System.String Tags
        {
            get { return _tags; }
            set { _tags = value; }
        }

        private System.DateTime _createTime;

        [FieldMapping(false, System.Data.DbType.DateTime, false, false)]
        public System.DateTime CreateTime
        {
            get { return _createTime; }
            set { _createTime = value; }
        }

        private System.DateTime _startTime;

        [FieldMapping(false, System.Data.DbType.DateTime, false, false)]
        public System.DateTime StartTime
        {
            get { return _startTime; }
            set { _startTime = value; }
        }

        private System.DateTime _endTime;

        [FieldMapping(false, System.Data.DbType.DateTime, false, false)]
        public System.DateTime EndTime
        {
            get { return _endTime; }
            set { _endTime = value; }
        }

        private Int64 _totalSeconds = 0;

        [FieldMapping(false, System.Data.DbType.Int64, false, false)]
        public System.Int64 TotalSeconds
        {
            get { return _totalSeconds; }
            set { _totalSeconds = value; }
        }

        private System.Int64 _status;

        [FieldMapping(false, System.Data.DbType.Int64, false, false)]
        public System.Int64 Status
        {
            get { return _status; }
            set { _status = value; }
        }


        #endregion

        #region Constructors

        public CrumbInfo() { }

        #endregion

    }

}
